package com.yjd.comm.login.model;

import com.yjd.comm.base.model.Model;

/**
 * <b>description</b>：登录日志模型<br>
 * <b>time</b>：2014-11-05 12:00:40 <br>
 * <b>author</b>：  renbangjie_vip@163.com
 */
public class UserLoginModel extends Model {

	/**
	* @Fields serialVersionUID
	*/
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	private Long id;
	/**
	 * 用户
	 */
	private Long user_id;
	/**
	 * ip
	 */
	private String ip;
	/**
	 * ip归属地
	 */
	private String ipdata;
	/**
	 * 最后登录日期
	 */
	private Long lastlogin;
	
	/**
	 * 设备外键
	 */
	private Long device_id;
	
	/**
	 * 登录渠道
	 */
	private Integer channel;
	
	
	public UserLoginModel() {
	}
	
	
	public UserLoginModel(Long user_id, String ip, String ipdata,
			Long lastlogin) {
		this.user_id = user_id;
		this.ip = ip;
		this.ipdata = ipdata;
		this.lastlogin = lastlogin;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getIpdata() {
		return ipdata;
	}
	public void setIpdata(String ipdata) {
		this.ipdata = ipdata;
	}
	public Long getLastlogin() {
		return lastlogin;
	}
	public void setLastlogin(Long lastlogin) {
		this.lastlogin = lastlogin;
	}

	public Integer getChannel() {
		return channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}

	public Long getDevice_id() {
		return device_id;
	}

	public void setDevice_id(Long device_id) {
		this.device_id = device_id;
	}
	
}
